package com.mmy.dao.oa;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.mmy.domain.oa.VMaterialIn;

public interface VMaterialInRepository extends JpaRepository<VMaterialIn, Integer> {

	/*
	 * 根据name查找
	 */
	@Query(value = "select *  from vMaterialIn where cMaterialName = :strMaterialName", nativeQuery = true)
	List<VMaterialIn> findByMaterialName(@Param("strMaterialName") String strMaterialName);

}
